
function showTime(){
	var nowTime,year,month,date,hour,minute,second;
	nowTime = new Date();
	year= nowTime.getFullYear();
	month = nowTime.getMonth()+1;
	
	date = nowTime.getDate();
	hours = nowTime.getHours();
	minutes = nowTime.getMinutes();
	seconds = nowTime.getSeconds();

	if (hours<10) {
		hours= '0' +hours;  
	}
	if (minutes<10) {
		minutes= '0' +minutes;  
	}
	if (seconds<10) {
		seconds= '0' +seconds;  
	}
	var time = '';
	time = year +'年'+month+'月'+date+'日'+hours+':'+minutes+':'+seconds;
	$("#time").html(time)
	// document.getElementById('time').innerhtml=time;
	setTimeout('showTime();',1000);
	// console.log(time)
}

showTime();

